<script src="../asynx.js"></script>
<script src="../dom/dom.js"></script>
<script src="../impl/array.js"></script>
<script src="../impl/util.js"></script>
<script src="../impl/cookie.js"></script>
<script src="../impl/ajax.js"></script>
<script src="../impl/lang.js"></script>
<script src="../dom/xpath.js"></script>
<script src="../dom/selector.js"></script>
<script src="../event/event.js"></script>

<script src="../plugins/drag/drag.js"></script>
<script src="../plugins/animation/anim.js"></script>
<script src="../plugins/datalist/datalist.js"></script>
<script src="../plugins/autocomplete/autocomplete.js"></script>
<script src="../plugins/windows/windows.js"></script>

<div id="titulo">asynx AJAX Connector</div><br>
<div id="log"></div>

<script>

	var attr = {
		method:'get',
		url:'teste.xml',
		format:'xml',
		charset:'utf-8',
		async: true,
		
		ifModified: true,
		
		ifNotModified: function(args) {
			 asynx$('log').innerHTML += args + "NAO MODIFICADO<br>";
		},
		
		ifNotModifiedArgs: [1,2,3],
		
		
		onComplete: function(r, args) { var a = r + ":comp:"  + args; asynx$('log').innerHTML += a + "<br>";  },
		onCompleteArgs: [1,2,3],
		
	//	loading: function(r, args) { var a = r + ":load:"  + args; asynx$('log').innerHTML += a + "<br>"; },
		//loadingArgs: [1,2,3,4],
		
		onError: function(r, args) { alert(r + ":erro:"  + args) },
		onErrorArgs: [1,2,3,4,5],
		
		json: false
	};
	
	
	
	var ajax = new asynx.ajax(attr);
	
	asynx.executeOn(function() {
		
		ajax.load();
		
	}, 1000, true);
	


	
</script>